/* stingf.c -- 格式化打印字符串 */

#include <stdio.h>
#define GOOD "Have a good time!"

int main(void)
{
  printf("*%s*\n", GOOD);
  printf("*%2.5s*\n", GOOD);
  printf("*%30.5s*\n", GOOD);
  printf("*%-30.5s*\n", GOOD);
  printf("*%.5s*\n", GOOD);

  return 0;
}